const http = require('http');

const host = '127.0.0.1';
const port = 3000;

const server = http.createServer( (req, res) => {
    res.end('Hello, NodeJs 3!');
});

server.listen(port, host, () => {
    console.log(`server is running at ${host}:${port}`);
});